<form class="layui-form">
  <input type="hidden" name="id" value="<{$info['id']}>" />
  <div class="layui-form-item">
    <label class="layui-form-label">快递名称</label>
    <div class="layui-input-block">
      <input type="text" name="name" lay-verify="required" placeholder="请输入快递名称" autocomplete="off" class="layui-input" value="<{$info['name']}>">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">开关</label>
    <div class="layui-input-block">
        <select name="status">
            <{volist name="status" id="v"}>
          <option value="<{$key}>" <{if $key==$info['status']}>selected<{/if}>><{$v}></option>
            <{/volist}>
        </select>
    </div>
  </div>
  <div class="layui-form-item">
    <div class="layui-input-block">
      <button class="layui-btn" lay-submit="" lay-filter="form">立即提交</button>
    </div>
  </div>
</form>

<script>
$().ready(function(){
  layui.form.render('select');
});
</script>
